<?php echo $this->doctype()."\n"; ?>
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<?php
echo $this->headTitle();
echo $this->headMeta();
echo $this->headLink(); 
echo $this->headScript();
?>
</head>
<body>
<div id="wapper">
	<div id="header">
    	<ul>
    		<?php 
    			$menuArray = $this->placeholder('mainMenu')->top; 
				foreach ($menuArray as $item)
				{
					$tmpString = $item == end($menuArray)?"class='last_item'":"";
					echo "<li ".$tmpString."><a href=".$this->url($item['link']).">".$item['title']."</a></li>";
				}
			?>        	
        </ul>        
    </div>
	<?php  echo $this->layout()->content; ?>
</div>

</body>
</html>
